package com.bingxue.edu.common.config;

import com.bingxue.edu.framework.config.DynamicConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 通知配置
 * @author panbo
 * @since 2024/8/29
 */
@Data
@DynamicConfig
@Configuration(proxyBeanMethods = false)
@ConfigurationProperties(prefix = NotifyConfigProperties.PREFIX)
public class NotifyConfigProperties {

    public static final String PREFIX = "notify.config";

    /**
     * 短信验证码模板id
     */
    private String smsCaptchaTemplateId = "1590762";
    /**
     * 报名成功提醒
     */
    private SceneConfig enrollPassedTip = new SceneConfig();
    /**
     * 转班提醒
     */
    private SceneConfig classChangedTip = new SceneConfig();
    /**
     * 调课提醒
     */
    private SceneConfig lessonChangedTip = new SceneConfig();
    /**
     * 退班提醒
     */
    private SceneConfig classCanceledTip = new SceneConfig();
    /**
     * 退课提醒
     */
    private SceneConfig lessonCanceledTip = new SceneConfig();
    /**
     * 课程补签提醒
     */
    private SceneConfig lessonSignInTip = new SceneConfig();


    @Data
    public static class SceneConfig {
        private String title;
        private String description;
        /**
         * 家长端微信公众号
         */
        private boolean parentWechatMpEnabled;
        /**
         * 老师企业微信通知
         */
        private boolean teacherWecomEnabled;
    }
}
